package org.orz.story.member.biz.account.service;

import com.github.pagehelper.Page;
import org.orz.cloud.auth.domain.UserInfo;
import org.orz.story.member.biz.account.model.req.*;
import org.orz.story.member.biz.account.persistence.entities.MemAccount;

import javax.servlet.http.HttpServletResponse;

public interface MemAccountService {

    /**
     * 管理端注册
     */
    void register(RegisterReq dto);

    /**
     * 用户端登录
     */
    UserInfo login(LoginReq req,String workbenchCode);

    /**
     * 分页查询账户信息
     */
    Page<MemAccount> listAccountInfo(ListAccountInfoReq req);

    /**
     * 更新账户信息
     */
    void updateAccount(UpdateAccountReq req);

    /**
     * 添加账号
     */
    void addAccount(AddAccountReq req);
}
